package xiegd.study.proxy;

import org.springframework.beans.factory.annotation.Value;
import xiegd.study.proxy.annotation.ClassLog;
import xiegd.study.proxy.annotation.MethodLog;

/**
 * @Author: xieguangda
 * @Description:
 * @Date: 2023/9/20 9:42
 */
@ClassLog(value = true)
public class MyBean {

    @Value("lpp")
    private String name;

    @Value("ddd")
    public String teacher;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getTeacher() {
        return teacher;
    }

    public void setTeacher(String teacher) {
        this.teacher = teacher;
    }

    @MethodLog
    public void study(String name){
        System.out.println("我是" + name + ",我准备开始学习了..");
    }


    @MethodLog("关闭")
    public void study2(String name){
        System.out.println("我是" + name + ",我应该不会被代理吧");
    }
}
